import request from '@/utils/request.js';

request.get('http://localhost:8249').then(response=>{
    console.log('1:',response.data);
}).catch((err)=>{
    console.log(err);
})

request({
    method:'get',
    url:'http://localhost:8249'
}).then(res=>{
    console.log('2:',res.data);
}).catch(err=>{
    console.log(err);
})

export default {
    getList(){
        return request({
            method:'get',
            url:'http://localhost:8249'
        })
    }
}